/*
 * Copyright (C) 2007-2012 by XDEV Software, All Rights Reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 3.0 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
package xdev.ui;


import java.awt.LayoutManager;

import javax.swing.JPanel;


/**
 * The {@link XComponent} is a basic GUI component. Based on {@link JPanel}.
 * 
 * @see JPanel
 * 
 * @author XDEV Software
 * 
 * @since 2.0
 */
public class XComponent extends JPanel
{
	/**
	 * Create a new {@link XComponent} with no layout manager.
	 * 
	 * <p>
	 * Alias for <code>XComponent(null)</code>
	 * </p>
	 * 
	 * @see #XComponent(LayoutManager)
	 * 
	 */
	public XComponent()
	{
		this(null);
	}
	

	/**
	 * Create a new {@link XComponent} with the specified layout manager.
	 * 
	 * @param layout
	 *            the LayoutManager to use
	 */
	public XComponent(LayoutManager layout)
	{
		super(layout);
		setOpaque(false);
	}
}
